#pragma once

struct PointTest
{
	double x;
	double y;

	UINT32 id;

	PointTest(double x1, double y1)
	{
		x = x1;
		y = y1;
	};

	//bool operator== (const PointTest&tp)const
	//{
	//	return (fabs(tp.x - x) < 0.01&&fabs(tp.y - y) < 0.01);
	//};

	bool operator<(const PointTest&tp)const
	{
		return x<tp.x;
	};
};

struct Poly
{
	vector<PointTest> pts;
	UINT32 id;
};

class TestDmap
{
public:
	TestDmap();
	~TestDmap();
	void Test();
	PointTest FindPtById(UINT32 id);
	PointTest FindPtByIdOld(UINT32 id);
	void AddPoly(PointTest ptStart);
	Poly m_pl;

	vector<Poly> m_Polys;
	dmap<CString, Poly> m_mapPolys;

	int m_size;
};
